Narrative:
Check that search is working

In order to find my lovely artist or track
As a software user
I would like to search for tracks and artists from the main page

Scenario: user sees a proper header of Jumbotron

Given http://localhost:4567/ is opened
When jumbotron is visible
Then there is "h1" tag with Music parser text is there
And there is "a" with Music parser text is there
And user quits

Scenario: user can open Artists page

Given http://localhost:4567/ is opened
When Link Artists is clicked
Then Page Artists: is opened
And user quits

Scenario: Page's links open correct URLs

Given http://localhost:4567/ is opened
When Link Artists is clicked
Then Page Artists has URL "http://localhost:4567/artists"
When Link Home is clicked
Then Page Home has URL "http://localhost:4567/"
When Link About is clicked
Then Page About has URL "http://localhost:4567/about"
When Link Tracks is clicked
Then Page Tracks has URL "http://localhost:4567/tracks"
And user quits

Scenario: count records on Artists page

Given http://localhost:4567/ is opened
When Link Artists is clicked
Then Count of Artists on Artists page is more than 40
And user quits


Scenario: user finds track named "absdefgh"

Given http://localhost:4567/ is opened
When jumbotron is visible
And there is "button" tag with Search attribute is there
Then enter "absdefgh" into search and click Search button
And text No Records were found displayed
And user quits